package org.example.opus.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.example.ai.model.entity.Users;
import org.example.ai.result.Result;
import org.example.opus.mapper.UsersMapper;
import org.example.opus.service.IUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 点赞记录表，用于存储用户对作品的点赞信息 服务实现类
 * </p>
 *
 * @author author
 * @since 2025-01-17
 */
@Service
@Slf4j
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements IUsersService {
    @Autowired
    private UsersMapper usersMapper;


    @Override
    public int getWorkUpdate(Users users) {
        return usersMapper.getWorkUpdate(users);
    }

    @Override
    public int getUpdate(Integer userId, String avatar) {
        return usersMapper.getUpdate(userId, avatar);
    }
}
